package xkp.lesson.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
public class Emp {
    private Integer empno;
    private String ename;
    private Double sal;
    private String job;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date hiredate;
    private Dept dept;
    private String[] hobbies;
}
